package com.whitecat.voting.entity;

import com.whitecat.voting.common.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Getter
@Setter
@Table(name = "t_candidate")
public class Candidate extends BaseDomain {
    @Id
    @Column(name = "openid")
    private String openId;
    private String name;
    private String introduction;
    private Integer region;
    @CreatedDate
    @Column(name = "create_time")
    private Date createTime;
    @LastModifiedDate
    @Column(name = "update_time")
    private Date updateTime;
    private Integer source;
    private Integer available;
}